package com.ytjj.qmyx.mall.model;

import java.io.Serializable;
import java.util.Date;

public class LoginLog implements Serializable {
    /**
     * 用户登陆记录表
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 登录时间
     *
     * @mbg.generated
     */
    private Date loginTime;

    /**
     * 登录平台
     *
     * @mbg.generated
     */
    private String platform;

    /**
     * 登录ip
     *
     * @mbg.generated
     */
    private String ip;

    /**
     * 版本号
     *
     * @mbg.generated
     */
    private String version;

    /**
     * 手机型号
     *
     * @mbg.generated
     */
    private String phoneModel;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getPhoneModel() {
        return phoneModel;
    }

    public void setPhoneModel(String phoneModel) {
        this.phoneModel = phoneModel;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", loginTime=").append(loginTime);
        sb.append(", platform=").append(platform);
        sb.append(", ip=").append(ip);
        sb.append(", version=").append(version);
        sb.append(", phoneModel=").append(phoneModel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}